package com.park.service.impl;

import com.park.bean.Attracts;
import com.park.dao.IChartDao;
import com.park.service.IChartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

@Service
public class ChartServiceImpl implements IChartService {
    @Autowired
    IChartDao dao;
    @Override
    public List<BigDecimal> getPriceOfTicketsPerDat() {
        return dao.getPriceOfTicketsPerDay();
    }

    @Override
    public List<LocalDate> getWeek() {
        return dao.getWeek();
    }

    @Override
    public List<Attracts> chartAttracts() {
        return dao.chartAttracts();
    }
}
